home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / 4thDimension / Export Dialog / Export Dialog ReadMe next >
Encoding:
Text File  |  1992-10-28  |  1.9 KB  |  42 lines  |  [TEXT/ttxt]

  1. Export Dialog
  2.  
  3. By Paul Jacoby, October 1992
  4.  
  5. Reach me at: (612) 731-6392 [home]
  6.                      (612) 737-3211 [work, subject to change]
  7. Internet: pejacoby@mmm.com
  8. Snail Mail: 2505 Mailand Road
  9.                   Maplewood, MN  55119
  10.  
  11. Please share this dialog freely. If you make modifications, I'd appreciate receiving a copy!  I also wouldn't mind getting credit in your application if you use this in-house.
  12.  
  13. By no means a be-all-end-all Export dialog, this layout attempts to mimic some of the functionality of the built-in 4D Export dialog. I've opted to not use any externals for SFDialogs or file placement.
  14.  
  15. Several components of the scripts could/should be placed in the Startup procedures (for example, the aFiles array only needs to be loaded ONCE). I've kept all the code together for ease of transport. Just copy the layout "Export Dialog" to your database, check for variable naming conflicts, and you are on your way.
  16.  
  17.   ` Variables used:
  18.   `---------------
  19.   ` aFiles - array containing the names of all files in the database (S15)
  20.   ` aFields - array of field names for the selected file (S15)
  21.   ` aFieldPtr - array of pointers to each field in the selected file (PTR)
  22.   ` aUserFields - array of field names the User has chosen to export (S15)
  23.   ` aUserFldPtr - array of pointers to fields the User has chosen to export (PTR)
  24.  
  25.   ` bAllRecs - select all records (Button)
  26.   ` bAppend - append field to user list (Button)
  27.   ` bExpHeader - include headers checkbox (Checkbox)
  28.   ` bExport - export records (Button)
  29.   ` bInsert - insert field into user list (Button)
  30.   ` bInsertAll- move all fields to the user list (Button)
  31.   ` bOK - OK button in dialog
  32.  
  33.   ` CR - carriage return character
  34.   ` DocRef - document reference returned by Create Document
  35.   ` vExpRecs - record count for the selected file
  36.   ` vFldDelimit - user-specified field delimiter
  37.   ` vRecDelimit - user-specified record delimiter
  38.  
  39.  
  40. Paul
  41.   10/28/92
  42.